<?php
namespace app\first\controller;
use think\Controller;
use think\Db;//引入数据库
class Index extends Controller
{
    public function index()
    {
        return 'hello yunzhi！';
    }
	
	public function title($text="第二个程序OK！")
	{
		$this->assign("text", $text);
		return $this->fetch();
	}
	
	public function dbtest()
	{
		$data = Db::name('think_data')->find();
		$this->assign('result', $data);
		return $this->fetch();
	}
}
